#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    char a[] = "hello";
    char b[] = "allfdsafjkldjfalkbcdefg";
    char *p = malloc(strlen(a) + strlen(b) + 1);
    strcpy(p, a);
    strcat(p, b);
    printf("%s\n", p);
    free(p);
    return 0;
}

